package ${basePackage}.generator;

import java.io.File;

public class MainGenerator {
    public static void doGenerate(Object model) {
        String inputRootPath = "${fileConfig.inputRootPath}";
        String outputRootPath = "${fileConfig.outputRootPath}";
        String inputGPath;
        String outputGPath;
        <#list fileConfig.files as fileInfo>
                inputGPath =new File(inputRootPath, "${fileInfo.inputPath}").getAbsolutePath();
                outputGPath =new File(outputRootPath, "${fileInfo.outputPath}").getAbsolutePath();
               <#if fileInfo.generateType=='static'>
                   StaticFileGenerator.copyFilesByHutool(parentPath, projectPath);
                   <#else >
                   DynamicFileGenerator.doGenerate(inputGPath, outputGPath, model);
               </#if>
        </#list>
    }
}
